﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using System.Web.Routing;

namespace ToppingControl
{
   public class RouteConfig
   {
      public static void RegisterRoutes(RouteCollection routes)
      {
         routes.IgnoreRoute("{resource}.axd/{*pathInfo}");

         Boolean i = true;
         if (i)
         {
            routes.MapRoute(
            name: "Default",
            url: "{controller}/{action}/{id}",
             //     defaults: new { controller = "table", action = "ReportViewer", id = UrlParameter.Optional }
         defaults: new { controller = "HeaderLine", action = "Index", id = UrlParameter.Optional }
        );
         }
         else
         {
            routes.MapRoute(
               name: "Default",
               url: "{controller}/{action}/{id}",
               defaults: new { controller = "ToppedCordPlan", action = "Index", id = UrlParameter.Optional }
           );
         }
      }
   }
}